import {useCallback, useState} from 'react';

export function useForceUpdate() {
  const [, update] = useState(-1);
  return useCallback(() => {
    update(v => v + 1);
  }, []);
}
